package com.education.controller;

import com.education.domain.TbscorePlus;
import com.education.service.ScoreService;
import com.education.service.TermService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by zhangjiawen on 2019/11/19.
 */
@Controller
@RequestMapping("/term")
public class TermController {
    Logger logger= LoggerFactory.getLogger(this.getClass());
    @Autowired
    private TermService termService;


    @RequestMapping("/getAllTerm")
    public Object selectByExample(ModelMap mm) {
        mm.put("arryTerm",termService.getAll());
        return "score/score";

    }






}
